.class Lcom/waiqin365/h5/customer/a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    const v7, 0x7f080595

    const v6, 0x7f040022

    const v5, 0x7f040021

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->a(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    new-instance v2, Lorg/json/JSONObject;

    iget-object v0, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->a(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "id"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    :goto_0
    const-string/jumbo v0, "name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "name"

    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_1
    new-instance v2, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-direct {v2}, Lcom/waiqin365/base/db/cmfilteritem/a;-><init>()V

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v3, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;

    invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "firstItemName"

    iget-object v3, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v3}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v3

    const v4, 0x7f080595

    invoke-virtual {v3, v4}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isLeafCheckOnly"

    const-string/jumbo v3, "0"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "cmFilterItem"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    iget-object v2, v2, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    :goto_2
    return-void

    :cond_0
    const-string/jumbo v0, ""

    move-object v1, v0

    goto :goto_0

    :cond_1
    const-string/jumbo v0, ""

    goto :goto_1

    :cond_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "firstItemName"

    iget-object v2, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v2}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    const v3, 0x7f080595

    invoke-virtual {v2, v3}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isLeafCheckOnly"

    const-string/jumbo v2, "0"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    iget-object v2, v2, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "firstItemName"

    iget-object v2, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v2}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v2

    invoke-virtual {v2, v7}, Lorg/apache/cordova/WqCordovaActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isLeafCheckOnly"

    const-string/jumbo v2, "0"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    iget-object v2, v2, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v1}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/h5/customer/a;->a:Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;->b(Lcom/waiqin365/h5/customer/WqCustomerAreaPicker;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    invoke-virtual {v0, v6, v5}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_2
.end method
